package org.zsk.cs.domain.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;
import org.zsk.fastdev.annotations.FieldMap;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 社区身份认证 po
 * </p>
 *
 * @author zsk
 * @version 1.0
 * Created on 2020/03/28
 */
@Data
public class IdentityAuth implements Serializable {

  /**
   * 社区身份认证id
   */
  @TableId(type = IdType.AUTO)
  private Long id;
  /**
   * 0 resident 居民  1 districtHead 社区长
   */
  private Integer type;
  /**
   * 0 wait for being audited  1 auditing   2 success   3 fail
   */
  private Integer status;
  /**
   * 创建时间
   */
  @FieldMap(comparator = ">=")
  private java.util.Date ctime;
  /**
   * 修改时间
   */
  @TableField(fill = FieldFill.UPDATE)
  private java.util.Date mtime;
  /**
   * 认证成功时间
   */
  @FieldMap(comparator = ">=")
  private java.util.Date atime;
  /**
   * 用户id
   */
  private Long uid;
  /**
   * 所在社区
   */
  @FieldMap(comparator = "like")
  private List<String> community;

}
